Sign a delegate action from a specific developer-controlled wallet.
NOTE: This endpoint is only available for NEAR and NEAR-TESTNET.
Parameters for signing a delegate action.
Unsigned delegate action string that needs to be signed. Must be base64 encoded.
System-generated unique identifier of the resource.
1const response = await client.signDelegateAction({
2 walletId: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
3 unsignedDelegateAction: 'ASVlcGFrcm...VkZHlndW1taS==',
4})
5console.log(response.data?.signature)
1{
2 "data": {
3 "signature": "3W6r38STvZuBSmk2bbbct132SjEsYSARo3CJi3JQvNUaFoYu...",
4 "signedDelegateAction": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpzlAhqqen7eyTe0KQ3w+9NS4E+7sscb+Cr..."
5 }
6}