Sign a delegate action from a specific developer-controlled wallet.
NOTE: This endpoint is only available for NEAR and NEAR-TESTNET.
System-generated unique identifier of the resource.
Unsigned delegate action string that needs to be signed. Must be base64 encoded.
A base64 string expression of the entity secret ciphertext. The entity secret should be encrypted by the entity public key. Circle mandates that the entity secret ciphertext is unique for each API request.
1from circle.web3 import developer_controlled_wallets
2from circle.web3 import utils
3
4client = utils.init_developer_controlled_wallets_client(api_key=key, entity_secret=entitySecret)
5
6api_instance = developer_controlled_wallets.SigningApi(client)
7request = developer_controlled_wallets.SignDelegateActionRequest.from_dict({
8 "walletId": "301e9038-e4c3-5a77-a9fe-95fd644f4c85",
9 "unsignedDelegateAction": "ZHVtbXktYWN0aW9u...",
10})
11response = api_instance.sign_delegate_action(sign_delegate_action_request=request)
12print(response.json())
13
1{
2 "data": {
3 "signature": "3W6r38STvZuBSmk2bbbct132SjEsYSARo3CJi3JQvNUaFoYu...",
4 "signed_delegate_action": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpzlAhqqen7eyTe0KQ3w+9NS4E+7sscb+Cr..."
5 }
6}