Skip to main content

accept

Function accept 

Source
pub async fn accept(
    registry: &RegistryClient,
    instruction_id: &ContractId<TransferInstruction>,
) -> Result<TokenCommand>
Expand description

Accept an offered transfer — the receiver’s move.

A TransferKind::Offer transfer does not settle on submission: it creates a TransferInstruction that waits for this. Without it the crate could tell a caller their transfer was pending and give them no way to finish it.

§Errors

As any registry call.