We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i get: "items must be object, received item of type: string",
at sending a createPolicyRule for example:
` const wallet = await bitgo .coin(coin) .wallets() .get({ id: userWallet?.wallet_id });
const policy = { action: { type: 'getApproval', }, condition: { add: 'address', }, id: 'withdraw_policy', type: 'advancedWhitelist', }; const result = await wallet.createPolicyRule(policy); console.log(result);`
that code is exactly the same as the one in the docs here
also via API it gives me 401 and I have others calls with other endpoints and the same Authorization token works
The text was updated successfully, but these errors were encountered:
I am getting the same error.
Sorry, something went wrong.
I figured out why my code wasn't working.
Here is the payload I am using now:
{ id: crypto.randomUUID(), type: "advancedWhitelist", condition: { add: { item: whitelistAddress, type: "address", }, }, action: { type: "deny", }, }
The add condition needs to be an object with item property and type property.
add
item
type
Hope this helps!
No branches or pull requests
i get: "items must be object, received item of type: string",
at sending a createPolicyRule for example:
` const wallet = await bitgo
.coin(coin)
.wallets()
.get({ id: userWallet?.wallet_id });
that code is exactly the same as the one in the docs here
also via API it gives me 401 and I have others calls with other endpoints and the same Authorization token works
The text was updated successfully, but these errors were encountered: