SDK Reference
IP Account
IPAccount allows you to manage IP Account metadata and execute transactions.
IPAccount
Methods
- set_ip_metadata
- execute
- execute_with_sig
- transfer_erc20
set_ip_metadata
Sets the metadataURI for an IP asset.
Method |
---|
set_ip_metadata |
Parameters:
ip_id
: The IP to set the metadata for.metadata_uri
: The metadataURI to set for the IP asset. Should be a URL pointing to metadata that fits the IPA Metadata Standard.metadata_hash
: The hash of metadata at metadataURI.tx_options
: [Optional] Transaction options dictionary.
execute
Executes a transaction from the IP Account.
Method |
---|
execute |
Parameters:
ip_id
: The IP Id to get ip account.to
: The recipient of the transaction.value
: The amount of Ether to send.data
: The data to send along with the transaction.tx_options
: [Optional] Transaction options dictionary.
execute_with_sig
Executes a transaction from the IP Account.
Method |
---|
execute_with_sig |
Parameters:
ip_id
: The IP to set the metadata for.to
: The recipient of the transaction.data
: The data to send along with the transaction.signer
: The signer of the transaction.deadline
: The deadline of the transaction signature.signature
: The signature of the transaction, EIP-712 encoded.value
: [Optional] The amount of Ether to send. Default: 0tx_options
: [Optional] Transaction options dictionary.
transfer_erc20
Transfers an ERC20 token from the IP Account.
Method |
---|
transfer_erc20 |
Parameters:
ip_id
: TheipId
of the accounttokens
: The token info to transfertokens.address
: The address of the ERC20 token including WIP and standard ERC20.tokens.amount
: The amount of tokens to transfertokens.target
: The address of the recipient.
tx_options
: [Optional] Transaction options dictionary.