IPAccountClient allows you to manage IP Account metadata and execute transactions.
Method | Type |
---|---|
setIpMetadata | (SetIpMetadataRequest) => Promis<Hex> |
request.ipId
: The IP to set the metadata for.request.metadataURI
: The metadataURI to set for the IP asset. Should be a URL pointing to metadata that fits the IPA Metadata Standard.request.metadataHash
: The hash of metadata at metadataURI.Method | Type |
---|---|
execute | (IPAccountExecuteRequest) => Promis<IPAccountExecuteResponse> |
request.ipId
: The Ip Id to get ip account.request.to
: The recipient of the transaction.request.value
: The amount of Ether to send.request.data
: The data to send along with the transaction.Method | Type |
---|---|
executeWithSig | (IPAccountExecuteRequest) => Promis<IPAccountExecuteResponse> |
request.ipId
: The Ip Id to get ip account.request.to
: The recipient of the transaction.request.data
: The data to send along with the transaction.request.signer
: The signer of the transaction.request.deadline
: The deadline of the transaction signature.request.signature
: The signature of the transaction, EIP-712 encoded.request.value
: [Optional] The amount of Ether to send.Method | Type |
---|---|
transferErc20 | (request: TransferErc20Request) => Promise<TransactionResponse> |
request.ipId
: The ipId
of the accountrequest.tokens
: The token info to transfer
request.tokens.address
: The address of the ERC20 token including WIP and standard ERC20.request.tokens.amount
: The amount of tokens to transferrequest.tokens.target
: The address of the recipient.