> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# Splice.Testing.TokenStandard.RegistryApi

> Documentation for Splice.Testing.TokenStandard.RegistryApi

Support for using a token compliant registry API in tests.

These simulate the OpenAPI endpoints that would be served by the backend of the registry implementation.

## Typeclasses

**class** RegistryApi app **where**

> Type-class for simulating calls to the off-ledger API of a registry.
>
> The function names match the names of the handlers defined in the OpenAPI specification.
>
> getTransferFactory
> : app -> TransferFactory\_Transfer -> Script (EnrichedFactoryChoice TransferFactory TransferFactory\_Transfer)
>
> getAllocationFactory
> : app -> AllocationFactory\_Allocate -> Script (EnrichedFactoryChoice AllocationFactory AllocationFactory\_Allocate)
>
> getAllocation\_TransferContext
> : app -> [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) Allocation -> Metadata -> Script OpenApiChoiceContext
>
> getAllocation\_WithdrawContext
> : app -> [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) Allocation -> Metadata -> Script OpenApiChoiceContext
>
> getAllocation\_CancelContext
> : app -> [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) Allocation -> Metadata -> Script OpenApiChoiceContext
>
> getTransferInstruction\_AcceptContext
> : app -> [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferInstruction -> Metadata -> Script OpenApiChoiceContext
>
> getTransferInstruction\_RejectContext
> : app -> [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferInstruction -> Metadata -> Script OpenApiChoiceContext
>
> getTransferInstruction\_WithdrawContext
> : app -> [ContractId](https://docs.canton.network/appdev/reference/daml-standard-library/prelude.md#type-da-internal-lf-contractid-95282) TransferInstruction -> Metadata -> Script OpenApiChoiceContext
>
> **instance** RegistryApi AmuletRegistry
