Skip to main content

IPAccount

Methods

  • set_ip_metadata
  • execute
  • execute_with_sig
  • transfer_erc20

set_ip_metadata

Sets the metadataURI for an IP asset. 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. 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. 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: 0
  • tx_options: [Optional] Transaction options dictionary.

transfer_erc20

Transfers an ERC20 token from the IP Account. Parameters:
  • ip_id: The ipId of the account
  • tokens: The token info to transfer
    • tokens.address: The address of the ERC20 token including WIP and standard ERC20.
    • tokens.amount: The amount of tokens to transfer
    • tokens.target: The address of the recipient.
  • tx_options: [Optional] Transaction options dictionary.