Used to handle the wrapping/unwrapping of WIP (Wrapped IP) tokens within Story.
Method |
---|
deposit |
amount
: The amount to deposit.tx_options
: [Optional] Transaction options dictionary.Method |
---|
withdraw |
amount
: The amount to withdraw.tx_options
: [Optional] Transaction options dictionary.Method |
---|
approve |
amount
: The amount of WIP tokens to approve.spender
: The address that will use the WIP tokens.tx_options
: [Optional] Transaction options dictionary.Method |
---|
balance_of |
address
: The address you want to check the balance for.amount
of WIP to a recipient to
.
Method |
---|
transfer |
to
: Who you’re transferring to.amount
: The amount to transfer.tx_options
: [Optional] Transaction options dictionary.amount
of WIP from from
to a recipient to
.
Method |
---|
transfer_from |
to
: Who you’re transferring to.amount
: The amount to transfer.from_address
: The address to transfer from.tx_options
: [Optional] Transaction options dictionary.spender
is allowed to spend on behalf of owner
.
Method |
---|
allowance |
owner
: The address of the token owner.spender
: The address of the spender.