Signing
EIP-712 structured signing for Agent and Master wallet operations.
Permission Boundary
Operation family
Signer
Operational risk
Agent Signing Process
2
3
Sign EIP-712
{
"types": {
"EIP712Domain": [
{ "name": "name", "type": "string" },
{ "name": "version", "type": "string" },
{ "name": "chainId", "type": "uint256" },
{ "name": "verifyingContract", "type": "address" }
],
"Agent": [
{ "name": "source", "type": "string" },
{ "name": "connectionId", "type": "bytes32" }
]
},
"primaryType": "Agent",
"domain": {
"name": "Exchange",
"version": "1",
"chainId": 421614,
"verifyingContract": "0x0100000000000000000000000000000000000001"
},
"message": {
"source": "b",
"connectionId": "0x<step2_result>"
}
}Field
Value
from afx import AfxClient
client = AfxClient.from_env(testnet=True)
# Agent-signed operations just work -- SDK handles signing internally.
result = client.exchange.place_order(
symbol_code=1,
px="40000",
qty="0.5",
side="BUY",
)Master Signing Process
approveAgent
revokeAgent
withdraw
faucetClaim (Testnet only)
Last updated

