Last updated
Last updated
Each subaccount can have at most one linked signer at a time. A linked signer can perform any execute on behalf of the subaccount it is linked to. Use the query to view your current linked signer.
Please note:
To enable a linked signer, your subaccount must have a minimum of 5 USDC worth in account value.
A max of 5 link signer requests every 7 days per subaccount. (weight=50). Use the query to check a subaccount's linked signer usage and remaining wait time.
See more general details in .
The solidity typed data struct that needs to be signed is:
sender
: a bytes32
sent as a hex string; includes the address and the subaccount identifier of the primary subaccount to add a signer to.
signer
: a bytes32
sent as a hex string; includes the address (first 20 bytes) that'll be used as the sender's
signer.
Notes:
the last 12 bytes of the signer
field do not matter and can be set to anything.
set signer
to the zero address to revoke current signer on the provided sender
.
Note: for signing you should always use the data type specified in the solidity struct which might be different from the type sent in the request e.g: nonce
should be an uint64
for Signing but should be sent as a string
in the final payload.
See more details and examples in our page.
nonce
: the tx_nonce
. This is an incrementing nonce, can be obtained using the query.
tx
object
Yes
A link signer transaction object. See Signing section for details on the transaction fields.
tx.sender
string
Yes
Hex string representing the subaccount's 32 bytes (address + subaccount name) of the tx sender.
tx.signer
string
Yes
A bytes32
sent as a hex string; includes the address (first 20 bytes) that'll be used as the sender's
signer. the last 12 bytes can be set to anything.
tx.nonce
string
Yes
This is an incrementing nonce, can be obtained using the Nonces query.
signature
string
Yes
Signed transaction. See Signing section for more details.
Designates an address to be able to sign executes on behalf of a subaccount.