Type Alias ExecuteMsg

Source
pub type ExecuteMsg = ExecuteMsg<Extension, Empty>;

Aliased Type§

pub enum ExecuteMsg {
    TransferNft {
        recipient: String,
        token_id: String,
    },
    SendNft {
        contract: String,
        token_id: String,
        msg: Binary,
    },
    Approve {
        spender: String,
        token_id: String,
        expires: Option<Expiration>,
    },
    Revoke {
        spender: String,
        token_id: String,
    },
    ApproveAll {
        operator: String,
        expires: Option<Expiration>,
    },
    RevokeAll {
        operator: String,
    },
    Mint(MintMsg<Option<Metadata>>),
    Burn {
        token_id: String,
    },
    Extension {
        msg: Empty,
    },
    UpdateMetadata(UpdateMetadataMsg<Option<Metadata>>),
}

Variants§

§

TransferNft

Transfer is a base message to move a token to another account without triggering actions

Fields

§recipient: String
§token_id: String
§

SendNft

Send is a base message to transfer a token to a contract and trigger an action on the receiving contract.

Fields

§contract: String
§token_id: String
§

Approve

Allows operator to transfer / send the token from the owner’s account. If expiration is set, then this allowance has a time/height limit

Fields

§spender: String
§token_id: String
§

Revoke

Remove previously granted Approval

Fields

§spender: String
§token_id: String
§

ApproveAll

Allows operator to transfer / send any token from the owner’s account. If expiration is set, then this allowance has a time/height limit

Fields

§operator: String
§

RevokeAll

Remove previously granted ApproveAll permission

Fields

§operator: String
§

Mint(MintMsg<Option<Metadata>>)

Mint a new NFT, can only be called by the contract minter

§

Burn

Burn an NFT, only admin can do this

Fields

§token_id: String
§

Extension

Extension msg

Fields

§msg: Empty
§

UpdateMetadata(UpdateMetadataMsg<Option<Metadata>>)

Update extension metadata